package top.anonyeast.pojo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component("human")
@ConfigurationProperties(prefix = "human")//注入application.yaml中前缀为human的对象
public class Human {
    private String name;
    private Integer age;
    private String[] address;
}
